package com.onlyphoto.onlymall.mvp.view.activity

import com.onlyphoto.onlymall.R
import com.onlyphoto.onlymall.base.BaseActivity
import com.onlyphoto.onlymall.events.LoginOutEvent
import com.onlyphoto.onlymall.mvp.contract.CRegister
import com.onlyphoto.onlymall.mvp.presenter.PRegisterImpl
import kotlinx.android.synthetic.main.activity_register.*
import org.greenrobot.eventbus.EventBus


class RegisterActivity : BaseActivity<PRegisterImpl>(), CRegister.IVRegister {

    override fun retry() {}

    override fun loadData() {
        //加载数据
    }

    override fun init() {
        // view 初始化 貌似kotlin 不需要这个
    }

    override fun initListener() {
        //点击事件初始化
        post.setOnClickListener{
            EventBus.getDefault().post(LoginOutEvent())
            finish()
        }
    }

    override fun isFullScreen(): Boolean {
        //是否沉浸式， 默认非沉浸式
        return false
    }

    public override fun initCustomerStatusManager() {

    }

    override fun setContentViewId(): Int {
        return R.layout.activity_register
    }

    override fun createPresenter() {
        mPresenter = PRegisterImpl(mContext, this)
    }

    override fun showLoading() {

    }

    override fun hideLoading() {

    }

}
